#pragma once

#include <iostream>
#include <string>
#include <gflags/gflags.h>

using namespace std;

DEFINE_bool(big_menu, true, "Include 'advanced' options in the menu listing");
DEFINE_string(languages, "english,french,german", "comma-separated list of languages to offer in the 'lang' menu");

void test_gflags_1(int argc, char **argv)
{
    string usage("This program does nothing.  Sample usage:\n");
    usage += std::string(argv[0])+" -big_menu=0 \n or :\n -languages=english";
    google::SetUsageMessage(usage);
    
    google::ParseCommandLineFlags(&argc, &argv, true);

    cout << "argc=" << argc << endl;
    if (FLAGS_big_menu) {
        cout << "big menu is ture" << endl;
    } else {
        cout << "big menu is flase" << endl;
    }

    cout << "languages=" << FLAGS_languages << endl;

    google::ShutDownCommandLineFlags();
}